package com.easyjava.builder;

import com.easyjava.bean.Constants;
import com.easyjava.bean.FieldInfo;
import com.easyjava.utils.DateUtils;

import java.io.BufferedWriter;
import java.io.IOException;
import java.util.Date;

/**
 * @ClassName BuildComment
 * @Date 2024/6/3  16:06
 **/
public class BuildComment {
    public static void createClassComment(BufferedWriter bufferedWriter,String classComment) throws IOException {
        bufferedWriter.write("/**");
        bufferedWriter.newLine();
        bufferedWriter.write(" * @Description " + classComment);
        bufferedWriter.newLine();
        bufferedWriter.write(" * @author " + Constants.AUTHOR_COMMENT);
        bufferedWriter.newLine();
        bufferedWriter.write(" * @Date " + DateUtils.format(new Date(),DateUtils.YMD));
        bufferedWriter.newLine();
        bufferedWriter.write(" **/");
        bufferedWriter.newLine();
    }

    public static void createFieldComment(BufferedWriter bufferedWriter,String comment) throws IOException {
        bufferedWriter.write("\t//"+comment);
        bufferedWriter.newLine();
    }
    public static void createMethodComment(){

    }
}

